package com.lh.common.entity.admin;

import com.baomidou.mybatisplus.annotation.TableName;
import com.lh.common.enums.IF;
import com.lh.common.enums.OrderStatusEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.ibatis.type.Alias;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;
/**
 * ovmal_order_status_log:商品订单状态记录表
 * @author Administrator 2020-05-09
 */
@TableName("ovmal_order_status_log")
@Alias("orderStatusLog")
@Data
public class OrderStatusLog implements Serializable {
    @ApiModelProperty(value = "主键")
    @Id
    @Column(name = "id")
    private Long id;

    @ApiModelProperty(value = "是否是系统用户操作 YES:是;NO:不是")
    @Column(name = "is_sys")
    private IF isSys;

    @ApiModelProperty(value = "后台管理员用户ID")
    @Column(name = "user_id")
    private Long userId;


    @ApiModelProperty(value = "订单ID")
    @Column(name = "order_id")
    private Long orderId;

    @ApiModelProperty(value = "旧订单状态  1:待付款 2:支付中 3:待发货 4已出库 5已发货 6已完成  7已取消 ")
    @Column(name = "old_status")
    private OrderStatusEnum oldStatus;

    @ApiModelProperty(value = "新订单状态   1:待付款 2:支付中 3:待发货 4已出库 5已发货 6已完成  7已取消 ")
    @Column(name = "new_status")
    private OrderStatusEnum newStatus;

    @ApiModelProperty(value = "")
    @Column(name = "create_time")
    private Date createTime;

    @ApiModelProperty(value = "")
    @Column(name = "update_time")
    private Date updateTime;

    @ApiModelProperty(value = "备注")
    @Column(name = "remark")
    private String remark;

    /**
     * ovmal_order_status_log
     */
    private static final long serialVersionUID = 1L;
}
